﻿<Windows:AbstractRibbonDropDownButton x:Class="PefStudio.Windows.TextHighlightColorRibbonDropDownButton"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:Windows="clr-namespace:PefStudio.Windows;assembly=PefStudio.Ribbon" xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Fluent:DropDownButton.Icon>
        <Grid>
            <Image Source="..\Images\TextHighlightColor.png" Width="16" Height="16"/>
            <Rectangle VerticalAlignment ="Bottom" Height="4" Width="16" HorizontalAlignment="Center">
                <Rectangle.Fill>
                    <SolidColorBrush Color="{Binding SelectedColor, ElementName=highlightColorGallery}"/>
                </Rectangle.Fill>
            </Rectangle>
        </Grid>
    </Fluent:DropDownButton.Icon>
    <Fluent:ColorGallery Mode="HighlightColors" x:Name="highlightColorGallery" SelectedColor="Yellow" IsAutomaticColorButtonVisible="False"/>
</Windows:AbstractRibbonDropDownButton>